extends Node2D

const LEFT = 0
const RIGHT = 1

var orientation
@export var done = false
var hurtful = preload("res://scenes/bite_hit.tscn")
@export var create_hurtful = false

func _ready():
	set_physics_process(true)
	
func _physics_process(delta):
	if (create_hurtful):
		get_node("HurtSpot1").add_child(hurtful.instantiate())
		get_node("HurtSpot2").add_child(hurtful.instantiate())
		get_node("HurtSpot3").add_child(hurtful.instantiate())
		create_hurtful = false
	elif (done):
		get_node("Timer").start()
		done = false

func _on_Timer_timeout():
	queue_free()
	
func getDamageType():
	return "hurtful"
